package wtd.stu.beans;

public class PersonFactory {
    public Person createPersonFactoryMethod(){
        Child child = new Child();
        child.setName("儿子");
        return child;
    }

    public User createUserFactoryMethod(){
        User user = new User();
        return user;
    }
}
